사이트 내 전체검색
PHP
전체 카운팅, 회원 방문객 같이 추출하는 sql 팁
로빈아빠
https://cmd.kr/php/798 URL이 복사되었습니다.

본문


// 회원, 방문객 카운트
$sql = " select sum(IF(mb_id<>'',1,0)) as mb_cnt, count(*) as total_cnt from $g4[login_table] ";
$row4 = sql_fetch($sql);

?>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr> 
  <td align="center" style="font-family:돋움; color:#FF6600; font-size:8pt;padding:5px;" bgcolor="#FAFAFA">
현재접속<?=$row4['total_cnt']?>명, 회원<?=$row4['mb_cnt']?>명

댓글목록

등록된 댓글이 없습니다.

PHP
871 (4/18P)

Search

Copyright © Cmd 명령어 18.188.147.91